package com.example.javabase.threadLocal;

/**
 * @author haitao
 * @date 2021/11/5 1:59 下午
 */
public class UserService {

    private static final ThreadLocal<String> CONTEXT = new ThreadLocal<>();

    public static void main(String[] args) {
        String name = "纵横";
        CONTEXT.set(name);
        System.out.println(CONTEXT.get());
    }
}
